#include<iostream>
#include<pthread.h>
#include<unistd.h>


using namespace std;
 static pthread_mutex_t mtx1=PTHREAD_MUTEX_INITIALIZER;
 static pthread_mutex_t mtx2=PTHREAD_MUTEX_INITIALIZER;
 static pthread_cond_t conda=PTHREAD_COND_INITIALIZER;
 static pthread_cond_t condb=PTHREAD_COND_INITIALIZER;

void* THREADA(void*arg)
{
  while(1)
  {
    pthread_mutex_lock(&mtx1);
  }
}
int main()
{
  pthread_t threadA;
  pthread_t threadB;

  pthread_create(&threadA,nullptr,THREADA,0);
  pthread_create(&threadB,nullptr,THREADB,0);
  pthread_cond_signal()
  pthread_join(threadA,nullptr);
  pthread_join(threadB,nullptr);


}
